import request from '@/utils/request'
export function getTemplateProbeIds(template){
  return request({
    url: '/system/probeInfo/listTemplate',
    method: 'get',
    params: { template: template }
  })
}
// 查询探针信息列表
export function listProbeInfo(query) {
  return request({
    url: '/system/probeInfo/list',
    method: 'get',
    params: query
  })
}
// 获取探针设计签核列表
export function getDesignSignature(projectId,params) {
  return request({
    url: `/system/probeInfo/designList/${projectId}`,
    method: 'get',
    params: params
  });
}
// 获取探针校对签核列表
export function getVerifySignature(projectId,params) {
  console.log('params',params)
  return request({
    url: `/system/probeInfo/verifyList/${projectId}`,
    method: 'get',
    params: params
  });
}
// 获取探针审定签核列表
export function getApproveSignature(projectId,params) {
  return request({
    url: `/system/probeInfo/approveList/${projectId}`,
    method: 'get',
    params: params
  });
}
// 查询探针日志
export function getProbeLog(id,params) {
  return request({
    url: `/system/probeInfo/listByProjectId/${id}`,
    method: 'get',
    params: params
  })
}
// 查询探针已发布信息列表
export function listProbeInfoRelease(query) {
  return request({
    url: '/system/probeInfo/Release',
    method: 'get',
    params: query
  })
}
// 查询探针信息详细
export function getProbeInfo(id) {
  return request({
    url: '/system/probeInfo/' + id,
    method: 'get'
  })
}

// 新增探针信息
export function addProbeInfo(data) {
  return request({
    url: '/system/probeInfo',
    method: 'post',
    data: data
  })
}

// 修改探针信息
export function updateProbeInfo(data) {
  return request({
    url: '/system/probeInfo',
    method: 'put',
    data: data
  })
}

// 删除探针信息
export function delProbeInfo(ids) {
  return request({
    url: `/system/probeInfo/${ids.join(',')}`,
    method: 'delete'
  })
}
